#!/bin/bash
# Zaitan Module - Audacious Install
# Zaitan Team <http://code.google.com/p/zaitan/>

##Instalando os Codecs
/usr/lib/zaitan/modulo/mod-w32codecs

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='MULTIMIDIA'
RMOD_NAME='Audacious'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.3.2'
RMOD_DESCRIPTION='Installs Audacious'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'


# Install Audacious

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install liblame-dev
apt-get -y install libmpeg2-4-dev
apt-get -y install libmpeg3-dev
apt-get -y install libmad0-dev
apt-get -y install libglib2.0-dev
apt-get -y install libpango1.0-dev
apt-get -y install libgtk2.0-dev
apt-get -y install libglade2-dev
apt-get -y install	libesd0-dev
apt-get -y install	libvorbis-dev
apt-get -y install	libflac-dev
apt-get -y install	lame
apt-get -y install libmpeg-dev

#Compilando o Libmcs

cd /usr/share/zaitan

wget -c http://sacredspiral.co.uk/~nenolod/mcs/mcs-0.4.1.tgz
tar xzvf mcs-0.4.1.tgz
cd mcs-0.4.1
./configure
make
make install

# Intalando Audacious

cd /usr/share/zaitan
wget -c http://static.audacious-media-player.org/release/audacious-1.3.2.tgz
tar xzvf audacious-1.3.2.tgz
cd audacious-1.3.2
./configure
make
make install


# Instalando Audacious-Plugins
cd /usr/share/zaitan
wget -c http://static.audacious-media-player.org/release/audacious-plugins-1.3.4.tgz
tar xzvf audacious-plugins-1.3.4.tgz
cd audacious-plugins-1.3.4
./configure
make
make install

echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

